<template>
	<view>
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-xiangzuo1" @tap="backPage"></view>
			<view class="text" :class="scrrol == true ? 'scrrolHeader' : ''">{{Lang.lang('系統設置')}}</view>
			<view class="back"></view>
			<!-- <view class="rule">规则</view> -->
		</view>
		<view class="clear_box"></view>

		<view class="page_content">
			<!-- <view class="list_box" data-url="/pages/personalcenter/profile" @tap="gotopage">
				<view class="left">
					<view class="icon iconfont icon-gerenziliao"></view>
					<view class="text">個人資料</view>
				</view>
				<view class="arrow iconfont icon-xiangyou1"></view>
			</view>
			<view class="list_box" data-url="/pages/personalcenter/about" @tap="gotopage">
				<view class="left">
					<view class="icon iconfont icon-a-ziyuan294"></view>
					<view class="text">關於我們</view>
				</view>
				<view class="arrow iconfont icon-xiangyou1"></view>
			</view> -->
			<!-- <view class="list_box">
				<view class="left">
					<view class="icon iconfont icon-a-ziyuan295"></view>
					<view class="text">版本號</view>
				</view>
				<view class="arrow">V 1.1.0</view>
			</view> -->
			<view class="list_box" @tap="outLogin">
				<view class="left">
					<view class="icon iconfont icon-a-ziyuan296"></view>
					<view class="text">{{Lang.lang('退出登錄')}}</view>
				</view>
				<view class="arrow iconfont icon-xiangyou1"></view>
			</view>
		</view>





	</view>
</template>

<script>
	export default {
		data() {
			return {
				lang: 'en',
				link: '',
				pupu: false,
				scrrol: false,
				info: '',

			}
		},
		onLoad() {

		},
		onShow() {
			let that = this;
			// that.loadData();
		},
		methods: {
			loadData() {

			},
			outLogin() {
				this.Net._delToken();
				this.Nav._to({
					url: 'pages/public/login',
					type: 1
				});
				if (window.ethereum) {
					window.ethereum.disconnect && window.ethereum.disconnect();
				} else if (window.web3 && window.web3.currentProvider) {
					window.web3.currentProvider.disconnect();
				}
				return false;
			},
			backPage() {
				uni.navigateBack({});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},
		},
		onPageScroll: function(Object) {
			//console.log(Object.scrollTop); //实时获取到滚动的值
			if (Object.scrollTop > 28) {
				this.scrrol = true;
				/* #ifdef APP-PLUS */
				/* #endif */
			} else if (Object.scrollTop < 28) {
				this.scrrol = false;
				/* #ifdef APP-PLUS */
				/* #endif */
			}
		},
	}
</script>

<style>
	.header {
		background-color: transparent !important;
	}

	.header .text {
		text-align: center;
	}

	.scrrolHeader {
		width: 100%;
		background-color: #1A1A1A !important;

	}

	.page_content {
		width: 92%;
		margin: 0 auto;
	}

	.list_box {
		width: 100%;
		margin: auto;
		height: 13vw;
		display: flex;
		line-height: 13vw;
		justify-content: space-between;
		background-color: #1A1A1A;
		padding: 0vw 3vw;
		margin-top: 3vw;
		border-radius: 2vw;
	}

	.list_box .left {
		display: flex;
	}

	.list_box .icon {
		font-size: 4.5vw;
		color: #fff;
		margin-right: 3vw;
	}

	.list_box .text {
		font-size: 3.5vw;
		color: #fff;
		margin-left: 2vw;
	}

	.list_box .arrow {
		font-size: 3.5vw;
		color: #999999;
	}
</style>